home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18496 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.iadfw.net!usenet
  2. From: Mark Nelson <markn@airmail.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: serial comms
  5. Date: Sat, 20 Apr 1996 22:04:15 -0500
  6. Organization: Guest user
  7. Message-ID: <3179A5AF.2869@airmail.net>
  8. References: <78837365wnr@dunedain.demon.co.uk>
  9. NNTP-Posting-Host: dal12-23.ppp.iadfw.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0GoldB2 (Win95; I)
  14.  
  15. stephen wrote:
  16. > I have linked two PC's through their serial ports using a null modem
  17. > cable. I need a program on one PC to pass data to another program on
  18. > the second PC. To do this I believe I have to use the bioscom() command
  19. > but I am having some difficulty. How could I use the command to send
  20. > an array from one program to the other through the COM ports. Could
  21. > anyone help?
  22.  
  23. Generally you are going to have trouble passing data using the BIOS commands.
  24. Under Windows or OS/2 you have built in support in the operating system for
  25. serial ports, but DOS is lacking in this area.
  26.  
  27. The solution is to add an interrupt driven interface to your program.  You 
  28. can read an article with full source code on my home page for a quick and
  29. dirty solution.  Check under "Magazine Articles".  If that leaves you
  30. wanting more, you might want to follow the links to my book "Serial
  31. Communications: A C++ Developer's Guide."  Unlike the article, it isn't free,
  32. but it does contain a lot more detailed info.
  33.  
  34. Mark Nelson
  35. http://web2.airmail.net/markn
  36.